import {httpRequest} from '@/request/https'

export default {
    /**
     * 获取调度优化甘特图信息
     * */
    postScheduilingShip: params => httpRequest({url: '/dis/spDispatch/scheme/chart', method: 'post', params}),
    /**
     * 甘特图拖拽保存
     * */
    postScheduilingGanttSave: params => httpRequest({url: '/dis/spDispatch/scheme/chart/save', method: 'post', params}),
    /**
     * 根据ID查询甘特图单条数据历史记录
     * */
    postGanttOneHistory: params => httpRequest({url: '/dis/spDispatch/scheme/detail/history', method: 'post', params}),
    /**
     * 获取调度优化历史记录
     * */
    postScheduilingHistory: params => httpRequest({url: '/dis/spDispatch/scheme/history', method: 'post', params}),
    /**
     * 调度优化方案还原
     * */
    getScheduilingRollback: params => httpRequest({url: `/dis/spDispatch/scheme/rollback/${params}`, method: 'get'}),
    /**
     * 调度优化方案下发
     * */
    getScheduilingPushlish: params => httpRequest({url: `/dis/spDispatch/scheme/send/${params}`, method: 'get'}),
    /**
     * 方案详情分页
     * */
    postScheduilingPage: params => httpRequest({url: `/dis/spDispatch/scheme/detail/page`, method: 'post', params}),
    /**
     * 修改方案详情
     * */
    postScheduilingInfo: params => httpRequest({url: `/dis/spDispatch/scheme/detail/update`, method: 'post', params}),
    /**
     * 删除
     * */
    deleteScheduiling: params => httpRequest({url: `/dis/spDispatch/scheme/detail/delete/`, method: 'delete', params}),
    /**
     * 新增调度
     * */
    postScheduilingCase: params => httpRequest({url: `/dis/spDispatch/scheme/save`, method: 'post', params}),
    /**
     * 调度优化新增虚拟船
     * */
    postScheduilingVirtualShip: params => httpRequest({url: `/dis/spInformation/saveOptimizeVirtualShip`, method: 'post', params}),
    /**
     * 表格导出
     * */
    postScheduilingPageExport: params => httpRequest({url: `/dis/spDispatch/scheme/exportDispatchPlan`, method: 'post', params}),
    /**
     * 表格加甘特图导出
     * */
    postScheduilingPageGanttExport: params => httpRequest({url: `/dis/spDispatch/scheme/exportDispatchPlanAndGante`, method: 'post', params}),
    /**
     * 资源合同
     * */
    postScheduleRes: params => httpRequest({url: `/con/conResourceMemorandum/list`, method: 'post', params})
}
